package com.ygqh.baby.po;

import java.util.Date;

import com.ygqh.baby.ao.SubscribeType;

public class YgSubscribeMsgDetail {

	private Long id;

	private String openId;

	private String templateId;

	private Long relationId;

	private String scene;

	private SubscribeType subscribeType;

	private Boolean isSend;

	private String remark;

	private Date createTime;

	private Date sendTime;

	/**
	 * 订阅消息到货通知 使用
	 */
	private String productName;

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public YgSubscribeMsgDetail() {
		super();
	}

	public YgSubscribeMsgDetail(String openId, String templateId, String scene, SubscribeType subscribeType, Long relationId, String remark) {
		super();
		this.openId = openId;
		this.templateId = templateId;
		this.scene = scene;
		this.subscribeType = subscribeType;
		this.remark = remark;
		this.relationId = relationId;
		this.createTime = new Date();
	}

	public Long getRelationId() {
		return relationId;
	}

	public void setRelationId(Long relationId) {
		this.relationId = relationId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId == null ? null : openId.trim();
	}

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId == null ? null : templateId.trim();
	}

	public String getScene() {
		return scene;
	}

	public void setScene(String scene) {
		this.scene = scene == null ? null : scene.trim();
	}

	public SubscribeType getSubscribeType() {
		return subscribeType;
	}

	public void setSubscribeType(SubscribeType subscribeType) {
		this.subscribeType = subscribeType;
	}

	public Boolean getIsSend() {
		return isSend;
	}

	public void setIsSend(Boolean isSend) {
		this.isSend = isSend;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}
}